/*
* @author dumeng
*/
'use strict'
import request from '@/utils/request'
/**
 * 列表查询
 */
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/queryPage',
    method: 'POST',
    data
  })
}

/**
 * 删除
 */
export function del(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/deleteById',
    method: 'POST',
    data
  })
}
/**
 * 开启关闭直播间
 */
export function updateLive(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/updateLiveStatus',
    method: 'POST',
    data
  })
}

/**
 * 发布、取消发布直播
 */
export function updateState(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/release',
    method: 'POST',
    data
  })
}
/**
 * 查询直播详情
 */
export function queryDetail(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/get',
    method: 'POST',
    data
  })
}
/**
 * 新建直播
 */
export function insert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/insert',
    method: 'POST',
    data
  })
}
/**
 * 编辑直播
 */
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/update',
    method: 'POST',
    data
  })
}
/**
 * 编辑预约人数
 */
export function updateNum(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/updateBookBum',
    method: 'POST',
    data
  })
}
/**
 * 获取部门
 */
export function getdepartmentInfo(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/departmentInfo/getDeptTree',
    method: 'POST',
    data
  })
}
/**
 * 直播回放发布
 */
export function updateStatePlayBack(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/livePlaybackInfo/publish',
    method: 'POST',
    data
  })
}
/**
 * 直播回放编辑
 */
export function livePlaybackInfoupdate(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/livePlaybackInfo/update',
    method: 'POST',
    data
  })
}
/**
 * 查询cc视频直播回放
 */
export function queryCCPlayback(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/livePlaybackInfo/queryCCPlayback',
    method: 'POST',
    data
  })
}
/**
 * 新增视频直播回放
 */
export function livePlaybackInfoInsert(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/livePlaybackInfo/insert',
    method: 'POST',
    data
  })
}
/**
 * 视频直播回放分页查询
 */
export function livePlaybackInfoqueryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/livePlaybackInfo/queryPage',
    method: 'POST',
    data
  })
}
/**
 * 设置直播回放配置信息
 */
export function livePlaybackInfosetSetting(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/livePlaybackInfo/setSetting',
    method: 'POST',
    data
  })
}
/**
 * 获取直播回放配置信息
 */
export function getSetting(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/livePlaybackInfo/getSetting',
    method: 'POST',
    data
  })
}
/**
 * 审核
 */
export function handleaudit(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/aduit',
    method: 'POST',
    data
  })
}
/**
 * 直播活动人员
 */
export function getPerson(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivityRange/queryUserRange',
    method: 'POST',
    data
  })
}
/**
 * 删除回放视频
 */
export function delPlayBack(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/livePlaybackInfo/deleteById',
    method: 'POST',
    data
  })
}

// 重新提交审核
export function handleauditReview(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/livePlaybackInfo/deleteById',
    method: 'POST',
    data
  })
}
// 地址
export function queryURL(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/getURL',
    method: 'POST',
    data
  })
}
// 地址
export function getDictByCode(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'POST',
    data
  })
}
// 提交人员
export function submitUser(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivityRange/insertUserRange',
    method: 'POST',
    data
  })
}
// 获取系统配置
export function getByName(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sys/sysConfig/getByName',
    method: 'POST',
    data
  })
}
// 修改直播范围
export function setLiveRange(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/updateRange',
    method: 'POST',
    data
  })
}
// 选择部门
export function insertDeptRange(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivityRange/insertDeptRange',
    method: 'POST',
    data
  })
}
// 选择部门
export function delPersons(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivityRange/deleteByIds',
    method: 'POST',
    data
  })
}
// 积分列表查询
export function queryPageIntegral(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/ccLiveStatistics/queryPage',
    method: 'POST',
    data
  })
}
// 用户信息同步
export function Synchronization(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/ccLiveStatistics/statisticsUserWatchInfo',
    method: 'POST',
    data
  })
}
// 用户积分下发
export function issued(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/ccLiveStatistics/issueIntegral',
    method: 'POST',
    data
  })
}
/**
 * 查询当前提醒的信息
 * @param {*} data
 */
export function giveUseDetail(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/getSendMsg',
    method: 'post',
    data
  })
}

/**
 * 发送短信提示
 * @param {*} data
 */
export function sendSms(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/sendSMSReminder',
    method: 'post',
    data
  })
}
// 设置标签
export function setTags(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/setCourseTag',
    method: 'POST',
    data
  })
}
// 获取标签
export function getCourseTag(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/liveActivity/getCourseTag',
    method: 'POST',
    data
  })
}

